<!DOCTYPE html>



  


<html class="theme-next gemini use-motion" lang="zh-Hans">
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="theme-color" content="#222">









<meta http-equiv="Cache-Control" content="no-transform">
<meta http-equiv="Cache-Control" content="no-siteapp">
















  
  
  <link href="/limh/lib/fancybox/source/jquery.fancybox.css?v=2.1.5" rel="stylesheet" type="text/css">







<link href="/limh/lib/font-awesome/css/font-awesome.min.css?v=4.6.2" rel="stylesheet" type="text/css">

<link href="/limh/css/main.css?v=5.1.4" rel="stylesheet" type="text/css">


  <link rel="apple-touch-icon" sizes="180x180" href="/limh/images/apple-touch-icon-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="32x32" href="/limh/images/favicon-32x32-next.png?v=5.1.4">


  <link rel="icon" type="image/png" sizes="16x16" href="/limh/images/favicon-16x16-next.png?v=5.1.4">


  <link rel="mask-icon" href="/limh/images/logo.svg?v=5.1.4" color="#222">





  <meta name="keywords" content="教程,">










<meta name="description" content="14H —顺序读24H —设置相对记录数15H —顺序写27H —随机读块21H —随机读28H —随机写块22H —随机写   (1)、功能14H功能描述：从文件中读出下一个顺序块，并相应增加文件的指针    入口参数：AH＝14H  DS:DX＝先前打开文件控制块的地址    出口参数：AL＝00H——读取成功　　01H——文件尾  　　02H——段缠绕　　　03H——部分记录在文件尾">
<meta name="keywords" content="教程">
<meta property="og:type" content="article">
<meta property="og:title" content="7、记录操作功能(FCB)(Record Function)">
<meta property="og:url" content="https://tdnr.gitee.io/limh/2015/04/01/asm66/index.html">
<meta property="og:site_name" content="土逗牛肉">
<meta property="og:description" content="14H —顺序读24H —设置相对记录数15H —顺序写27H —随机读块21H —随机读28H —随机写块22H —随机写   (1)、功能14H功能描述：从文件中读出下一个顺序块，并相应增加文件的指针    入口参数：AH＝14H  DS:DX＝先前打开文件控制块的地址    出口参数：AL＝00H——读取成功　　01H——文件尾  　　02H——段缠绕　　　03H——部分记录在文件尾">
<meta property="og:locale" content="zh-Hans">
<meta property="og:updated_time" content="2019-01-23T15:24:15.629Z">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="7、记录操作功能(FCB)(Record Function)">
<meta name="twitter:description" content="14H —顺序读24H —设置相对记录数15H —顺序写27H —随机读块21H —随机读28H —随机写块22H —随机写   (1)、功能14H功能描述：从文件中读出下一个顺序块，并相应增加文件的指针    入口参数：AH＝14H  DS:DX＝先前打开文件控制块的地址    出口参数：AL＝00H——读取成功　　01H——文件尾  　　02H——段缠绕　　　03H——部分记录在文件尾">



<script type="text/javascript" id="hexo.configurations">
  var NexT = window.NexT || {};
  var CONFIG = {
    root: '/limh/',
    scheme: 'Gemini',
    version: '5.1.4',
    sidebar: {"position":"left","display":"post","offset":12,"b2t":false,"scrollpercent":false,"onmobile":false},
    fancybox: true,
    tabs: true,
    motion: {"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}},
    duoshuo: {
      userId: '0',
      author: '博主'
    },
    algolia: {
      applicationID: '',
      apiKey: '',
      indexName: '',
      hits: {"per_page":10},
      labels: {"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}
    }
  };
</script>



  <link rel="canonical" href="https://tdnr.gitee.io/limh/2015/04/01/asm66/">





  <title>7、记录操作功能(FCB)(Record Function) | 土逗牛肉</title>
  








</head>

<body itemscope itemtype="http://schema.org/WebPage" lang="zh-Hans ">

  
  
    
  

  <div class="container sidebar-position-left page-post-detail">
    <div class="headband"></div>

    <header id="header" class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-wrapper">
  <div class="site-meta ">
    

    <div class="custom-logo-site-title">
      <a href="/limh/" class="brand" rel="start">
        <span class="logo-line-before"><i></i></span>
        <span class="site-title">土逗牛肉</span>
        <span class="logo-line-after"><i></i></span>
      </a>
    </div>
      
        <p class="site-subtitle"></p>
      
  </div>

  <div class="site-nav-toggle">
    <button>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
      <span class="btn-bar"></span>
    </button>
  </div>
</div>

<nav class="site-nav">
  

  
    <ul id="menu" class="menu">
      
        
        <li class="menu-item menu-item-home">
          <a href="/limh/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-home"></i> <br>
            
            首页
          </a>
        </li>
      
        
        <li class="menu-item menu-item-archives">
          <a href="/limh/archives/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-archive"></i> <br>
            
            归档
          </a>
        </li>
      
        
        <li class="menu-item menu-item-tags">
          <a href="/limh/tags/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-tags"></i> <br>
            
            标签
          </a>
        </li>
      
        
        <li class="menu-item menu-item-categories">
          <a href="/limh/categories/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-th"></i> <br>
            
            分类
          </a>
        </li>
      
        
        <li class="menu-item menu-item-about">
          <a href="/limh/about/" rel="section">
            
              <i class="menu-item-icon fa fa-fw fa-user"></i> <br>
            
            关于
          </a>
        </li>
      

      
    </ul>
  

  
</nav>



 </div>
    </header>

    <main id="main" class="main">
      <div class="main-inner">
        <div class="content-wrap">
          <div id="content" class="content">
            

  <div id="posts" class="posts-expand">
    

  

  
  
  

  <article class="post post-type-normal" itemscope itemtype="http://schema.org/Article">
  
  
  
  <div class="post-block">
    <link itemprop="mainEntityOfPage" href="https://tdnr.gitee.io/limh/limh/2015/04/01/asm66/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="name" content="土逗牛肉">
      <meta itemprop="description" content>
      <meta itemprop="image" content="/limh/images/avatar.jpg">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="土逗牛肉">
    </span>

    
      <header class="post-header">

        
        
          <h1 class="post-title" itemprop="name headline">7、记录操作功能(FCB)(Record Function)</h1>
        

        <div class="post-meta">
          <span class="post-time">
            
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              
                <span class="post-meta-item-text">发表于</span>
              
              <time title="创建于" itemprop="dateCreated datePublished" datetime="2015-04-01T20:36:31+08:00">
                2015-04-01
              </time>
            

            

            
          </span>

          
            <span class="post-category">
            
              <span class="post-meta-divider">|</span>
            
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              
                <span class="post-meta-item-text">分类于</span>
              
              
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/limh/categories/汇编教程/" itemprop="url" rel="index">
                    <span itemprop="name">汇编教程</span>
                  </a>
                </span>

                
                
              
            </span>
          

          
            
          

          
          

          

          

          

        </div>
      </header>
    

    
    
    
    <div class="post-body" itemprop="articleBody">

      
      

      
        <table><tbody><tr> <td>14H —顺序读</td><td>24H —设置相对记录数</td></tr><tr><td>15H —顺序写</td><td>27H —随机读块</td></tr><tr><td>21H —随机读</td><td>28H —随机写块</td></tr><tr><td colspan="2">22H —随机写</td></tr></tbody></table>


<h2 id="1-、功能14H"><a href="#1-、功能14H" class="headerlink" title="(1)、功能14H"></a>(1)、功能14H</h2><table><tbody><tr><td>功能描述：</td><td>从文件中读出下一个顺序块，并相应增加文件的指针</td>  </tr>  <tr><td>入口参数：</td><td>AH＝14H<br>  DS:DX＝先前打开文件控制块的地址</td>  </tr>  <tr><td>出口参数：</td><td>AL＝00H——读取成功　　01H——文件尾<br>  　　02H——段缠绕　　　03H——部分记录在文件尾</td>  </tr></tbody></table>

<h2 id="2-、功能15H"><a href="#2-、功能15H" class="headerlink" title="(2)、功能15H"></a>(2)、功能15H</h2><table>  <tbody><tr><td>功能描述：</td><td>向文件写入下一个顺序数据块，并相应增加文件的指针</td>  </tr>  <tr><td>入口参数：</td><td>AH＝15H<br>  DS:DX＝先前打开文件控制块的地址</td>  </tr>  <tr><td>出口参数：</td><td>AL＝00H——写入成功　　01H——磁盘满　　02H——段缠绕</td>  </tr></tbody></table>

<h2 id="3-、功能21H"><a href="#3-、功能21H" class="headerlink" title="(3)、功能21H"></a>(3)、功能21H</h2><table><tbody><tr><td>功能描述：</td><td>从文件中读出当前选定的记录</td>  </tr>  <tr><td>入口参数：</td><td>AH＝21H<br>  DS:DX＝先前打开文件控制块的地址</td>  </tr>  <tr><td>出口参数：</td><td>AL＝00H——读取成功　　　01H——文件尾<br>  　　02H——取消读操作　　03H——部分记录在文件尾</td>  </tr></tbody></table>

<h2 id="4-、功能22H"><a href="#4-、功能22H" class="headerlink" title="(4)、功能22H"></a>(4)、功能22H</h2><table>  <tbody><tr><td>功能描述：</td><td>把内存中的数据写入在文件中当前选定的记录</td>  </tr>  <tr><td>入口参数：</td><td>AH＝22H<br>  DS:DX＝先前打开文件控制块的地址</td>  </tr>  <tr><td>出口参数：</td><td>AL＝00H—写入成功　　01H—磁盘满　　02H—取消写操作</td>  </tr></tbody></table>

<h2 id="5-、功能24H"><a href="#5-、功能24H" class="headerlink" title="(5)、功能24H"></a>(5)、功能24H</h2><table>  <tbody><tr><td>功能描述：</td><td>设置FCB中相对记录数作为被打开FCB中的记录数</td>  </tr>  <tr><td>入口参数：</td><td>AH＝24H<br>  DS:DX＝先前打开文件控制块的地址</td>  </tr>  <tr><td>出口参数：</td><td>AL的值被破坏，其它寄存器不受影响，FCB中偏移量21H单元被修改</td>  </tr></tbody></table>

<h2 id="6-、功能27H"><a href="#6-、功能27H" class="headerlink" title="(6)、功能27H"></a>(6)、功能27H</h2><table>  <tbody><tr><td>功能描述：</td><td>从文件中读出若干个记录到内存中</td>  </tr>  <tr><td>入口参数：</td><td>AH＝27H<br>  DS:DX＝先前打开文件控制块的地址</td>  </tr>  <tr><td>出口参数：</td><td>AL＝00H——读取成功　　　01H——文件尾<br>  　　02H——取消读操作　　03H——部分记录在文件尾<br>  CX＝实际读出的记录数</td>  </tr></tbody></table>

<h2 id="7-、功能28H"><a href="#7-、功能28H" class="headerlink" title="(7)、功能28H"></a>(7)、功能28H</h2><table>  <tbody><tr><td>功能描述：</td><td>从内存向文件中写入若干个记录</td>  </tr>  <tr><td>入口参数：</td><td>AH＝28H<br>  CX＝要写入的记录数<br>  DS:DX＝先前打开文件控制块的地址</td>  </tr>  <tr><td>出口参数：</td><td>AL＝00H——写入成功　　01H——磁盘满　　02H——段缠绕<br>  CX＝实际写入的记录数</td>  </tr></tbody></table>
      
    </div>
    
    
    

    

    

    

    <footer class="post-footer">
      
        <div class="post-tags">
          
            <a href="/limh/tags/教程/" rel="tag"># 教程</a>
          
        </div>
      

      
      
      

      
        <div class="post-nav">
          <div class="post-nav-next post-nav-item">
            
              <a href="/limh/2015/04/01/asm65/" rel="next" title="6、记录操作功能(Record Function)">
                <i class="fa fa-chevron-left"></i> 6、记录操作功能(Record Function)
              </a>
            
          </div>

          <span class="post-nav-divider"></span>

          <div class="post-nav-prev post-nav-item">
            
              <a href="/limh/2015/04/01/asm67/" rel="prev" title="8、内存分配功能(Memory-Allocation Function)">
                8、内存分配功能(Memory-Allocation Function) <i class="fa fa-chevron-right"></i>
              </a>
            
          </div>
        </div>
      

      
      
    </footer>
  </div>
  
  
  
  </article>



    <div class="post-spread">
      
    </div>
  </div>


          </div>
          


          

  
    <div class="comments" id="comments">
      <div id="SOHUCS"></div>
    </div>

  



        </div>
        
          
  
  <div class="sidebar-toggle">
    <div class="sidebar-toggle-line-wrap">
      <span class="sidebar-toggle-line sidebar-toggle-line-first"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-middle"></span>
      <span class="sidebar-toggle-line sidebar-toggle-line-last"></span>
    </div>
  </div>

  <aside id="sidebar" class="sidebar">
    
    <div class="sidebar-inner">

      

      
        <ul class="sidebar-nav motion-element">
          <li class="sidebar-nav-toc sidebar-nav-active" data-target="post-toc-wrap">
            文章目录
          </li>
          <li class="sidebar-nav-overview" data-target="site-overview-wrap">
            站点概览
          </li>
        </ul>
      

      <section class="site-overview-wrap sidebar-panel">
        <div class="site-overview">
          <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
            
              <img class="site-author-image" itemprop="image" src="/limh/images/avatar.jpg" alt="土逗牛肉">
            
              <p class="site-author-name" itemprop="name">土逗牛肉</p>
              <p class="site-description motion-element" itemprop="description"></p>
          </div>

          <nav class="site-state motion-element">

            
              <div class="site-state-item site-state-posts">
              
                <a href="/limh/archives/">
              
                  <span class="site-state-item-count">255</span>
                  <span class="site-state-item-name">日志</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-categories">
                <a href="/limh/categories/index.html">
                  <span class="site-state-item-count">8</span>
                  <span class="site-state-item-name">分类</span>
                </a>
              </div>
            

            
              
              
              <div class="site-state-item site-state-tags">
                <a href="/limh/tags/index.html">
                  <span class="site-state-item-count">7</span>
                  <span class="site-state-item-name">标签</span>
                </a>
              </div>
            

          </nav>

          

          
            <div class="links-of-author motion-element">
                
                  <span class="links-of-author-item">
                    <a href="https://github.com/limhGeek" target="_blank" title="GitHub">
                      
                        <i class="fa fa-fw fa-github"></i>GitHub</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="mailto:1591054297@qq.com" target="_blank" title="E-Mail">
                      
                        <i class="fa fa-fw fa-envelope"></i>E-Mail</a>
                  </span>
                
                  <span class="links-of-author-item">
                    <a href="https://www.jianshu.com/u/f73b243e7cc9" target="_blank" title="简书">
                      
                        <i class="fa fa-fw fa-user-circle-o"></i>简书</a>
                  </span>
                
            </div>
          

          
          

          
          

          

        </div>
      </section>

      
      <!--noindex-->
        <section class="post-toc-wrap motion-element sidebar-panel sidebar-panel-active">
          <div class="post-toc">

            
              
            

            
              <div class="post-toc-content"><ol class="nav"><li class="nav-item nav-level-2"><a class="nav-link" href="#1-、功能14H"><span class="nav-number">1.</span> <span class="nav-text">(1)、功能14H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#2-、功能15H"><span class="nav-number">2.</span> <span class="nav-text">(2)、功能15H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#3-、功能21H"><span class="nav-number">3.</span> <span class="nav-text">(3)、功能21H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#4-、功能22H"><span class="nav-number">4.</span> <span class="nav-text">(4)、功能22H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#5-、功能24H"><span class="nav-number">5.</span> <span class="nav-text">(5)、功能24H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#6-、功能27H"><span class="nav-number">6.</span> <span class="nav-text">(6)、功能27H</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#7-、功能28H"><span class="nav-number">7.</span> <span class="nav-text">(7)、功能28H</span></a></li></ol></div>
            

          </div>
        </section>
      <!--/noindex-->
      

      

    </div>
  </aside>


        
      </div>
    </main>

    <footer id="footer" class="footer">
      <div class="footer-inner">
        <div class="copyright">&copy; <span itemprop="copyrightYear">2019</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">土逗牛肉</span>

  
</div>


  <div class="powered-by">由 <a class="theme-link" target="_blank" href="https://hexo.io">Hexo</a> 强力驱动</div>



  <span class="post-meta-divider">|</span>



  <div class="theme-info">主题 &mdash; <a class="theme-link" target="_blank" href="https://github.com/iissnan/hexo-theme-next">NexT.Gemini</a> v5.1.4</div>




        







        
      </div>
    </footer>

    
      <div class="back-to-top">
        <i class="fa fa-arrow-up"></i>
        
      </div>
    

    

  </div>

  

<script type="text/javascript">
  if (Object.prototype.toString.call(window.Promise) !== '[object Function]') {
    window.Promise = null;
  }
	var str = GetUrlParam('height');
    if (str === '0'){
		document.getElementById('header').style.display = 'none';
		document.getElementById('comments').style.display = 'none';
		document.getElementById('footer').style.display = 'none';
		document.getElementsByClassName('post-footer').item(0).style.display = 'none'
	}
	
    function GetUrlParam(paraName) {
        var url = document.location.toString();
        var arrObj = url.split("?");

        if (arrObj.length > 1) {
            var arrPara = arrObj[1].split("&");
            var arr;

            for (var i = 0; i < arrPara.length; i++) {
                 arr = arrPara[i].split("=");

                if (arr != null && arr[0] === paraName) {
                    return arr[1];
                }
            }
            return "";
        } else {
            return "";
        }
    }
</script>









  












  
  
    <script type="text/javascript" src="/limh/lib/jquery/index.js?v=2.1.3"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/fastclick/lib/fastclick.min.js?v=1.0.6"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/jquery_lazyload/jquery.lazyload.js?v=1.9.7"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/velocity/velocity.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/velocity/velocity.ui.min.js?v=1.2.1"></script>
  

  
  
    <script type="text/javascript" src="/limh/lib/fancybox/source/jquery.fancybox.pack.js?v=2.1.5"></script>
  


  


  <script type="text/javascript" src="/limh/js/src/utils.js?v=5.1.4"></script>

  <script type="text/javascript" src="/limh/js/src/motion.js?v=5.1.4"></script>



  
  


  <script type="text/javascript" src="/limh/js/src/affix.js?v=5.1.4"></script>

  <script type="text/javascript" src="/limh/js/src/schemes/pisces.js?v=5.1.4"></script>



  
  <script type="text/javascript" src="/limh/js/src/scrollspy.js?v=5.1.4"></script>
<script type="text/javascript" src="/limh/js/src/post-details.js?v=5.1.4"></script>



  


  <script type="text/javascript" src="/limh/js/src/bootstrap.js?v=5.1.4"></script>



  


  




	





  





  












  





  

  

  

  
  

  

  

  

</body>
</html>
